package threads;

class JoinTheThread
{
  static class JoinerThread extends Thread
  {
    public int result;

    @Override public void run()
    {
      result = 1;
    }
  }

  public static void main( String[] args ) throws InterruptedException
  {
    JoinerThread t = new JoinerThread();
    t.start();
   // t.join(); // warte auf die fertigstellung des Thread
    System.out.println( t.result );
  }
}